package study.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 *
 *
 * @author Ychiha
 * @version 1.0
 * @date 31/12/2021 下午11:08
 */
@RestController
public class ValueController {

    @Value("${view.page}")
    private String JoyBoy;

    @RequestMapping("val")
    public String value(){
        System.out.println(JoyBoy);
        return ""+JoyBoy;
    }


}
